package Frame;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import java.awt.Font;
import javax.swing.JButton;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.table.DefaultTableModel;
import javax.swing.JComboBox;
import javax.swing.JTextField;

public class ConfirmerCommande extends JFrame {

	private JPanel contentPane;
	private JTable tblSommaire2;
	private JTextField textField;
	private JTextField textField_1;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					ConfirmerCommande frame = new ConfirmerCommande();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public ConfirmerCommande() {
		setTitle("Gestion de restaurant");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 589, 449);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JLabel lblConfirmerLaCommande = new JLabel("Confirmer la commande");
		lblConfirmerLaCommande.setFont(new Font("Tahoma", Font.PLAIN, 28));
		lblConfirmerLaCommande.setBounds(22, 25, 313, 26);
		contentPane.add(lblConfirmerLaCommande);
		
		JButton btnAnnuler = new JButton("Annuler");
		btnAnnuler.setFont(new Font("Tahoma", Font.BOLD, 13));
		btnAnnuler.setBounds(460, 25, 103, 31);
		contentPane.add(btnAnnuler);
		
		JScrollPane scrollPane = new JScrollPane();
		scrollPane.setBounds(22, 84, 199, 229);
		contentPane.add(scrollPane);
		
		tblSommaire2 = new JTable();
		tblSommaire2.setModel(new DefaultTableModel(
			new Object[][] {
			},
			new String[] {
				"Plat", "Quantit\u00E9", "Sous-Total"
			}
		));
		scrollPane.setViewportView(tblSommaire2);
		
		JLabel lblNewLabel = new JLabel("Sommaire");
		lblNewLabel.setFont(new Font("Tahoma", Font.BOLD, 13));
		lblNewLabel.setBounds(22, 68, 83, 14);
		contentPane.add(lblNewLabel);
		
		JComboBox comboBox = new JComboBox();
		comboBox.setBounds(249, 111, 245, 26);
		contentPane.add(comboBox);
		
		JLabel lblNewLabel_1 = new JLabel("Adresse");
		lblNewLabel_1.setFont(new Font("Tahoma", Font.BOLD, 13));
		lblNewLabel_1.setBounds(249, 90, 83, 14);
		contentPane.add(lblNewLabel_1);
		
		textField = new JTextField();
		textField.setBounds(249, 204, 212, 20);
		contentPane.add(textField);
		textField.setColumns(10);
		
		textField_1 = new JTextField();
		textField_1.setBounds(249, 262, 212, 20);
		contentPane.add(textField_1);
		textField_1.setColumns(10);
		
		JLabel lblNewLabel_2 = new JLabel("Jour de livraison (jj/mm/aaaa):");
		lblNewLabel_2.setFont(new Font("Tahoma", Font.BOLD, 13));
		lblNewLabel_2.setBounds(249, 182, 212, 20);
		contentPane.add(lblNewLabel_2);
		
		JLabel lblJourDeLivraison = new JLabel("Heure de livraison (HH:MM):");
		lblJourDeLivraison.setFont(new Font("Tahoma", Font.BOLD, 13));
		lblJourDeLivraison.setBounds(249, 235, 212, 20);
		contentPane.add(lblJourDeLivraison);
		
		JButton btnConfirmer = new JButton("Confirmer");
		btnConfirmer.setFont(new Font("Tahoma", Font.BOLD, 13));
		btnConfirmer.setBounds(249, 324, 245, 63);
		contentPane.add(btnConfirmer);
		
		JLabel lblSousTotal = new JLabel("Sous total:");
		lblSousTotal.setFont(new Font("Tahoma", Font.BOLD, 13));
		lblSousTotal.setBounds(95, 324, 126, 14);
		contentPane.add(lblSousTotal);
		
		JLabel lblTps = new JLabel("TPS:");
		lblTps.setFont(new Font("Tahoma", Font.BOLD, 13));
		lblTps.setBounds(138, 339, 83, 14);
		contentPane.add(lblTps);
		
		JLabel lblTvq = new JLabel("TVQ:");
		lblTvq.setFont(new Font("Tahoma", Font.BOLD, 13));
		lblTvq.setBounds(138, 355, 83, 14);
		contentPane.add(lblTvq);
		
		JLabel lblTotal = new JLabel("Total:");
		lblTotal.setFont(new Font("Tahoma", Font.BOLD, 13));
		lblTotal.setBounds(129, 373, 92, 14);
		contentPane.add(lblTotal);
	}
}
